package com.lxmes.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import com.lxmes.common.core.domain.BaseEntity;

/**
 * 出库详情对象 cc_chuku_detail
 * 
 * @author 王超
 * @date 2022-06-29
 */
public class CcChukuDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 主表id */
    @Excel(name = "主表id")
    private Long mainId;
    @Excel(name = "单号")
    private String danhao;


    /** 出库数量 */
    @Excel(name = "出库数量")
    private BigDecimal ckNum;

    /** 入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cukuDate;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String itemName;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String itemCode;
    /** 规格 */
    @Excel(name = "规格型号")
    private String spec;
    /** 物料单位 */
    @Excel(name = "物料单位")
    private String unit;

    /** 供应商 */
    @Excel(name = "供应商")
    private Long supplyId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplyName;

    /** 仓库编号 */
    @Excel(name = "仓库编号")
    private String stockId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String stockName;
    /** 库区编码 */
    @Excel(name = "库区编码")
    private String kuquCode;

    /** 库区名称 */
    @Excel(name = "库区名称")
    private String kuquName;
    /** 库位编码 */
    @Excel(name = "库位编码")
    private String kuweiCode;

    /** 大类Id */
    @Excel(name = "大类Id")
    private String classId;

    /** 大类名称 */
    @Excel(name = "大类名称")
    private String className;
    /** 批次 */
    @Excel(name = "批次")
    private String lot;
    /*库存数量 只显示不同步数据库*/
    private BigDecimal stockNum;
    //单件
    private BigDecimal unitPrice;
    /** 总价 */
    private BigDecimal totalPrice;

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }
    public String getDanhao() {
        return danhao;
    }
    public void setDanhao(String danhao) {
        this.danhao = danhao;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMainId(Long mainId) 
    {
        this.mainId = mainId;
    }

    public Long getMainId() 
    {
        return mainId;
    }
    public void setCkNum(BigDecimal ckNum)
    {
        this.ckNum = ckNum;
    }

    public BigDecimal getCkNum()
    {
        return ckNum;
    }
    public void setCukuDate(Date cukuDate) 
    {
        this.cukuDate = cukuDate;
    }

    public Date getCukuDate() 
    {
        return cukuDate;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }

    public String getItemCode() 
    {
        return itemCode;
    }
    public void setSupplyId(Long supplyId) 
    {
        this.supplyId = supplyId;
    }

    public Long getSupplyId() 
    {
        return supplyId;
    }
    public void setSupplyName(String supplyName) 
    {
        this.supplyName = supplyName;
    }

    public String getSupplyName() 
    {
        return supplyName;
    }
    public void setStockId(String stockId)
    {
        this.stockId = stockId;
    }

    public String getStockId()
    {
        return stockId;
    }
    public void setStockName(String stockName) 
    {
        this.stockName = stockName;
    }

    public String getStockName() 
    {
        return stockName;
    }
    public void setClassId(String classId)
    {
        this.classId = classId;
    }

    public String getClassId()
    {
        return classId;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getStockNum() {
        return stockNum;
    }

    public void setStockNum(BigDecimal stockNum) {
        this.stockNum = stockNum;
    }

    public String getLot() {
        return lot;
    }

    public void setLot(String lot) {
        this.lot = lot;
    }

    public String getKuquCode() {
        return kuquCode;
    }

    public void setKuquCode(String kuquCode) {
        this.kuquCode = kuquCode;
    }

    public String getKuquName() {
        return kuquName;
    }

    public void setKuquName(String kuquName) {
        this.kuquName = kuquName;
    }

    public String getKuweiCode() {
        return kuweiCode;
    }

    public void setKuweiCode(String kuweiCode) {
        this.kuweiCode = kuweiCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mainId", getMainId())
            .append("ckNum", getCkNum())
            .append("cukuDate", getCukuDate())
            .append("itemName", getItemName())
            .append("itemCode", getItemCode())
            .append("supplyId", getSupplyId())
            .append("supplyName", getSupplyName())
            .append("stockId", getStockId())
            .append("stockName", getStockName())
            .append("classId", getClassId())
            .append("className", getClassName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
